package com.yunjian.core.basic.service;

import com.yunjian.core.basic.mapper.SRoleMapper;
import com.yunjian.core.basic.model.SRole;
import com.yunjian.core.basic.model.SRoleExample;
import com.github.pagehelper.PageInfo;

public interface SRoleService extends SRoleMapper{
	/**
	 * 分页检索
	 * @param page
	 * @param rows
	 * @return
	 */
	PageInfo<SRole> selectPagedByExample(int page, int rows, SRoleExample example); 
	
	/**
	 * 级联删除角色及相关的资源用户关系
	 * @param key 角色id
	 */
	void deleteRoleRelativeByPrimaryKey(String key);
}
